package com.zhanghe.study.spring4.annotation.config.importseletor;

import com.zhanghe.study.spring4.annotation.config.bean.Red;
import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * 选择器
 * @author zh
 * @date 2021/2/21 12:39
 */
public class MyImportSelector implements ImportSelector {

    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {

        return new String[]{Red.class.getName()};
    }
}
